Skip to content

feat(validator-speclynx): expose OpenAPI namespaces via toolbox#210

Merged
char0n merged 2 commits intomainfrom
char0n/validator-speclynx-expose-namespaces
Feb 13, 2026
Merged

feat(validator-speclynx): expose OpenAPI namespaces via toolbox#210
char0n merged 2 commits intomainfrom
char0n/validator-speclynx-expose-namespaces

Conversation

@char0n
Copy link
Member

@char0n char0n commented Feb 13, 2026

Summary by CodeRabbit

  • New Features

    • Added explicit support for OpenAPI 3.0 and 3.1 namespaces in the validator toolchain.
  • Chores

    • Streamlined package dependencies, removing several parser/adapter modules (may reduce coverage for some formats).
  • Documentation

    • Updated plugin examples and headers to reflect the revised toolbox dependencies and namespace usage.

@char0n char0n self-assigned this Feb 13, 2026
@char0n char0n requested a review from Copilot February 13, 2026 23:26
@char0n char0n added the enhancement New feature or request label Feb 13, 2026
@coderabbitai
Copy link

coderabbitai bot commented Feb 13, 2026

Caution

Review failed

The pull request is closed.

📝 Walkthrough

Walkthrough

Adds OpenAPI 3.0 and 3.1 ApiDOM namespace modules to the SpecLynx backend toolbox, updates plugin documentation to list those dependencies, and removes several unused apidom-related dependencies from the package.json. No runtime logic changes beyond wiring the namespaces into the toolbox.

Changes

Cohort / File(s) Summary
Core Implementation
packages/jentic-openapi-validator-speclynx/src/jentic/apitools/openapi/validator/backends/speclynx/resources/speclynx.mjs
Imported @speclynx/apidom-ns-openapi-3-0 and @speclynx/apidom-ns-openapi-3-1 and exposed them in the plugin toolbox dependency mapping used during validation.
Dependency Documentation
packages/jentic-openapi-validator-speclynx/src/jentic/apitools/openapi/validator/backends/speclynx/__init__.py, .../resources/plugins/example-plugin.mjs.sample, .../resources/plugins/openapi-document.mjs, .../tests/fixtures/plugins/version-validator.mjs
Updated plugin header comments/documentation to include @speclynx/apidom-ns-openapi-3-0 and @speclynx/apidom-ns-openapi-3-1 in the declared external dependencies list.
Dependency Cleanup
packages/jentic-openapi-validator-speclynx/src/jentic/apitools/openapi/validator/backends/speclynx/resources/package.json
Removed a number of apidom and parser-related dependencies; retained a smaller set (datamodel, json-path, json-pointer, openapi-3-0/3-1, reference, traverse).

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

Suggested labels

dependencies

Poem

🐰 I nibble through the toolbox maze,
Two namespaces join my craze,
3.0, 3.1 — a tidy pair,
Plugins find them waiting there,
Hooray, a hop and happy air! ✨

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The pull request title clearly and concisely describes the main change: exposing OpenAPI 3.0 and 3.1 namespaces through the toolbox, which aligns with the primary modifications across multiple files.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
Merge Conflict Detection ✅ Passed ✅ No merge conflicts detected when merging into main

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch char0n/validator-speclynx-expose-namespaces

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the SpecLynx-based OpenAPI validator backend to expose the OpenAPI 3.0 and 3.1 ApiDOM namespace packages via the plugin toolbox deps, and trims the embedded Node resources package.json dependencies accordingly.

Changes:

  • Add @speclynx/apidom-ns-openapi-3-0 and @speclynx/apidom-ns-openapi-3-1 to the toolbox deps map in the SpecLynx CLI resource.
  • Update plugin documentation/comments (JS fixtures, built-in plugins, sample plugin, and Python backend docstring) to list the newly available dependencies.
  • Remove unused SpecLynx packages from the embedded resources package.json and reflect that in package-lock.json.

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/jentic-openapi-validator-speclynx/tests/fixtures/plugins/version-validator.mjs Updates fixture plugin doc comment to include the new namespace deps.
packages/jentic-openapi-validator-speclynx/src/jentic/apitools/openapi/validator/backends/speclynx/resources/speclynx.mjs Imports OpenAPI namespace packages and exposes them through toolbox.deps.
packages/jentic-openapi-validator-speclynx/src/jentic/apitools/openapi/validator/backends/speclynx/resources/plugins/openapi-document.mjs Updates plugin doc comment to reflect new deps available in toolbox.
packages/jentic-openapi-validator-speclynx/src/jentic/apitools/openapi/validator/backends/speclynx/resources/plugins/example-plugin.mjs.sample Updates sample plugin documentation of deps contents.
packages/jentic-openapi-validator-speclynx/src/jentic/apitools/openapi/validator/backends/speclynx/resources/package.json Removes unused SpecLynx dependencies; keeps required ones incl. OpenAPI namespaces.
packages/jentic-openapi-validator-speclynx/src/jentic/apitools/openapi/validator/backends/speclynx/init.py Updates Python backend docstring describing plugin toolbox deps.
package-lock.json Removes lock entries corresponding to removed embedded-resource dependencies.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@char0n char0n merged commit 6749982 into main Feb 13, 2026
3 of 4 checks passed
@char0n char0n deleted the char0n/validator-speclynx-expose-namespaces branch February 13, 2026 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant